<extend name="public:base" />

<block name="left">
    <div class="mark_bar cl">
        <a href="javascript:history.back(-1);" class="goback fl"><i class="iconfont">&#xe600;</i></a>
        <p>支付密码</p>
    </div>
</block>

<block name="main">
    <div class="content">
        <if condition="$pin_status eq 0">
            <form action="{:url('uc/safe/pay_pass')}" method="post" id="first_form">
                <input type="hidden" id="sendcodeurl" value="{:url('/uc/safe/pay_sms')}" />
                <div class="openframe_content notpad" style="padding-top: 0;">
                    <div class="tc"><span class="red">温馨提示：</span>支付密码为6位数字组成！</div>
                    <div class="form">
                        <div class="input_form">
                            <div class="input_form_bar">
                                <p>支付密码</p>
                                <input type="password" class="input_t password" name="pass" maxlength="6" value="" required id="password1" />
                                <div class="cl"></div>
                            </div>
                            <div class="input_form_bar">
                                <p>确认支付密码</p>
                                <input type="password" class="input_t password" name="pass1" maxlength="6" required value="" id="password2"/>
                                <div class="cl"></div>
                            </div>
                        </div>
                        <div class="wrap">
                            <input class="submit" type="submit" value="确认提交" />
                        </div>
                    </div>
                </div>
            </form>
        <else/>
            <form action="{:url('uc/safe/edit_pay_pass')}" method="post" id="form">
                <input type="hidden" id="sendcodeurl" value="{:url('uc/safe/pay_sms')}" />
                <div class="openframe_content notpad" style="padding-top: 0;">
                    <div class="tc"><span class="red">温馨提示：</span>支付密码为6位数字组成！</div>
                    <div class="form">
                        <div class="input_form">
                            <div class="input_form_bar">
                                <p>短信验证码</p>
                                <input name="scode" id="scode" class="input_t" value="" size="6" maxlength="6" autocomplete="off" type="tel" />
                                <a href="javascript:void(0);" class="send_btm" id="btnSendMsg">获取验证码</a>
                                <div class="cl"></div>
                            </div>
                            <div class="input_form_bar">
                                <p>支付密码</p>
                                <input type="password" class="input_t password" name="pass" maxlength="6" value="" required id="password1" />
                                <div class="cl"></div>
                            </div>
                            <div class="input_form_bar">
                                <p>确认支付密码</p>
                                <input type="password" class="input_t password" name="pass1" maxlength="6" required value="" id="password2"/>
                                <div class="cl"></div>
                            </div>
                        </div>
                        <div class="wrap">
                            <input class="submit" type="submit" value="确认修改" />
                        </div>
                    </div>
                </div>
            </form>
        </if>
    </div>
</block>

<block name="menu"></block>

<block name="js">
    <script type="text/javascript" src="__JS__/check.js?v={:config('app_ver')}"></script>
    <script type="text/javascript" src="__JS__/pay_pass.js?v={:config('app_ver')}"></script>
</block>